{% load treemenu_tags %}
<li>
    <a href={% if menuitem.link != '#' %}{{ menuitem.link }}{% else %}"/report/theme/{{ menuitem.pk }}/"{% endif %} {% if menuitem.level == 1 and menuitem.has_children %} class="dropdown-toggle" data-toggle="dropdown" {% endif %}>
        <i class="menu-icon fa {{ menuitem.icon }}"></i>&nbsp;
        {{ menuitem.label }}&nbsp;
        {% if menuitem.level < 2 and menuitem.has_children %}
            <i class="ace-icon fa fa-angle-down bigger-110"></i>
        {% endif %}
    </a>
    {% if menuitem.level < 2 and menuitem.has_children %}
        <ul class="submenu dropdown-menu dropdown-light-blue dropdown-caret">
            {% for child in menuitem.children %}
                {% show_top_menuitem child.pk %}
            {% endfor %}
        </ul>
    {% endif %}
</li>
